package com.itheima.service.impl;

import com.itheima.service.Service;

@org.springframework.stereotype.Service
public class ServiceImpl implements Service {
    //连接点：可能被增强的方法称之为连接点
   //切入点：被增强的方法称之为切入点
    //注意：切入点一定是连接点，而连接点未必是切入点
    public void find() {
        System.out.println("发现了新的大陆");
        int i = 10 / 0;
    }


    public int createNum(int i){
        i = 100;
        System.out.println("创造一个数字");
        return i+10;
    }
}
